﻿using BCCommon;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.TMS.Order.OrderProcess
{
    /// <summary>
    /// 订单装货请求
    /// </summary>
    public class OrderLoadingRequestDto: OrderProcessExtentionBaseRequestDto
    {
        /// <summary>
        /// 车头正面拍照
        /// </summary>
        [Display(Name = "车头正面拍照")]
        [Required(ErrorMessage = "请上传 {0}")]
        [StringLength(1000, ErrorMessage = "{0} 长度应小于1000字符")]
        [RegularExpression(RegexPatterns.PHOTO_ADDRESS, ErrorMessage = "{0} 不是有效的图片地址")]
        public string LoadPhotoFront { get; set; }
        /// <summary>
        /// 车身侧面拍照
        /// </summary>
        [Display(Name = "车身侧面拍照")]
        [Required(ErrorMessage ="请上传 {0}")]
        [StringLength(1000,ErrorMessage ="{0} 长度应小于1000字符")]
        [RegularExpression(RegexPatterns.PHOTO_ADDRESS,ErrorMessage ="{0} 不是有效的图片地址")]
        public string LoadPhotoLeft { get; set; }

        /// <summary>
        /// 车尾背面拍照
        /// </summary>
        [Display(Name = "车尾背面拍照")]
        [Required(ErrorMessage = "请上传 {0}")]
        [StringLength(1000, ErrorMessage = "{0} 长度应小于1000字符")]
        [RegularExpression(RegexPatterns.PHOTO_ADDRESS, ErrorMessage = "{0} 不是有效的图片地址")]
        public string LoadPhotoBack { get; set; }

        /// <summary>
        /// 与货主合影拍照
        /// </summary>
        [Display(Name = "与货主合影拍照")]
        [Required(ErrorMessage = "请上传 {0}")]
        [StringLength(1000, ErrorMessage = "{0} 长度应小于1000字符")]
        [RegularExpression(RegexPatterns.PHOTO_ADDRESS, ErrorMessage = "{0} 不是有效的图片地址")]
        public string LoadPhotoShipping { get; set; }
        /// <summary>
        /// 实际货物重量或体积
        /// </summary>
        [Display(Name ="实际货物重量或体积")]
        public decimal? ActualGoodsValue { get; set; }
    }
}
